Masteriyo\RestApi\Controllers\Version1\CoursesController C

Total Complexity 101
Dependencies 13
Dependents 2
Total lines 1,326
Lines of code 915
Logical lines of code 201
Comment lines 287
Methods 20
Properties 6

Methods 20

Method Rating Maintainability Complexity Lines of code
prepare_object_for_database()
D
29
41 111
get_item_schema()
B
23
1 314
prepare_objects_query()
A
43 9 52
register_routes()
A
34 1 138
get_course_data()
S
41 4 55
get_item_permissions_check()
S
50 5 31
update_enrollments_status()
S
56 5 19
save_taxonomy_terms()
S
62 5 11
get_object()
S
57 4 16
description_data()
S
63 5 10
restore_item()
S
57 4 14
get_collection_params()
S
44 1 52
update_enrollments_status_for_courses_deletion()
S
59 3 17
validate_featured_image()
S
63 4 10
prepare_links()
S
54 2 21
get_taxonomy_terms()
S
59 2 15
prepare_object_for_response()
S
63 2 9
process_objects_collection()
S
62 1 12
get_courses_count()
S
74 1 4
__construct()
S
74 1 4